﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FD.FileSyncServer.Core
{
    /*
     * CreatedOn: 2018-05-19
     * CreatedBy: Jackie Lee(天宇遊龍)
     */
    public interface IServerSyncConfig
    {
        int HeartBeat { get; set; }
        IList<SyncServer> SyncServers { get; set; }
        int CheckDirBeat { get; set; }
    }

    public class SyncServer
    {
        public string Name { get; set; }

        public string ServerIp { get; set; }

        public int Port { get; set; }
        /// <summary>
        /// 主服务
        /// </summary>
        public bool IsMain { get; set; }
        /// <summary>
        /// 同步的主目录
        /// </summary>
        public string MainPath { get; set; }

        /// <summary>
        /// 最大连接数
        /// </summary>
        public int MaxConnection { get; set; }
    }
}
